<template>
  <div id="app">
    <router-view />
  </div>
</template>

<style lang="less">
#app .el-form {
  .empty-frame{
    display: inline-block;
    width: 0;
    height: 30px;
    top: 0;
    border-left: 1px dashed #000;
    position: absolute;
  }
}
#app .el-dialog--center .el-dialog__body{
  padding-top: 0;
  padding-bottom: 0;
}
#app *.on{
  background: rgba(145, 206, 255, 0.5);
}
#app *.table-components-on{
  background: rgba(145, 206, 255, 0.5);
}
#app .el-table td, .el-table th.is-leaf{
  font-weight: 400;
}
#app .el-drawer__header{
  margin-bottom: 10px;
  padding-top: 10px;
}
#app .el-input__inner{
  width: 100%;
  max-width: 160px;
}
#app .el-form[data-type="form"]{
  min-height: 100px;
  padding: 20px 0;
  border: 1px solid #EBEEF5;
  background: #EBEEF5;
  position: relative;
  .el-input__inner{
    width: 100%;
    max-width: none;
  }
  .el-col{
    text-align: left;
  }
}
#el-drawer__title{
  // background: rgba(252, 143, 0, 0.911);
}
#app .el-textarea__inner{
  resize: none;
}
#app {
  .el-input-group__append{
    position: initial;
  }
  .remote-body{
    position: absolute;
    left: 0;
    top: 32px;
  }
}
.layout-box{
  padding: 30px 5px 10px 5px;
  background-color: rgb(218, 229, 255);
  margin: 20px 10px;
  display: flex;
  position: relative;
  box-sizing: border-box;
  border: 1px solid #ccc;
}
.layout-components-box{
  padding: 30px 0 0 0;
  position: relative;
  .drag-tools-bar{
    border: 1px solid #EBEEF5;
    border-bottom: 0 none;
  }
  margin: 20px;
}
.drag-tools-bar{
  display: flex;
  box-sizing: border-box;
  height: 30px;
  line-height: 30px;
  line-height: 1;
  font-size: 14px;
  position: absolute;
  align-items: center;
  top: 0;
  flex-direction: row-reverse;
  left: 0;
  right: 0;
}
.layout-box-btn-delete,
.layout-box-btn-edit,
.layout-box-btn-thumb,
.layout-box-btn-document-add{
  cursor: pointer;
  margin: 0 10px;
}
.layout-box-kids{
  min-height: 100px;
  background-color: rgb(255, 255, 255);
  margin: 0 5px;
  padding: 20px 0;
  // overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #ccc;
}
.empty-frame{
  margin: 20px;
  padding: 0;
  height: 0;
  // transform:scale(0.5);
  // transform-origin: 0 0;
  border-top: 1px dashed #000;
}
.intro-loop(@n, @i:1) when (@i <= @n) {
  .layout-box-kids-@{i} {
    width: (@i * 100% / @n);
  }
  .intro-loop(@n, (@i + 1));
}
.intro-loop(100);
</style>